/* 
 * File:   ft2atlas.h
 * Author: artem
 *
 * Created on September 13, 2011, 7:00 PM
 */

#ifndef FT2ATLAS_H
#define FT2ATLAS_H

namespace ft2atlas
{
	struct glyph_t
	{
		uint16_t x;
		uint16_t y;
		uint16_t w;
		uint16_t h;
		uint32_t ch;
		int16_t  xadv;
		int16_t  yadv;
		int16_t  xoff;
		int16_t  yoff;
		//int8_t   kern[256];
	};

	struct font_t
	{
		glyph_t glyphs[256];
	};

	struct font_desc_t
	{
		font_t   font;
		uint16_t width;
		uint16_t height;
		uint16_t bitmap[];
	};
}

#endif /* FT2ATLAS_H */
